<?php

namespace app\common\service;


class RedisKeyService
{
    public static function loginToken($data): string
    {
        return 'pro_login_' . sha1(md5($data));
    }

    public static function userToken($data): string
    {
        return 'pro_user_' . sha1(md5($data));
    }

    public static function tempUserToken($data): string
    {
        return 'pro_temp_user_' . $data;
    }

    public static function accessToken($data): string
    {
        return 'pro_access_token_' . $data;
    }
}